package com.zjjt.dc.modules.datacatch.service.lw.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zjjt.dc.modules.datacatch.entity.lw.DcCatchDataLwWh;
import com.zjjt.dc.modules.datacatch.mapper.IDcCatchDataLwWhMapper;
import com.zjjt.dc.modules.datacatch.service.lw.IDcDataCatchLwWhService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class DcCatchDataLwWhService extends ServiceImpl<IDcCatchDataLwWhMapper, DcCatchDataLwWh> implements IDcDataCatchLwWhService {


    @Override
    public List<DcCatchDataLwWh> getCreateById(String id) {
        DcCatchDataLwWh entity = new DcCatchDataLwWh();
        entity.setCreateBy(Long.parseLong(id));
        QueryWrapper<DcCatchDataLwWh> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("create_by", id);
        return baseMapper.selectList(queryWrapper);
    }

    @Override
    public List<DcCatchDataLwWh> getUnProcess() {
        return baseMapper.getUnProcess();
    }

    @Override
    public Page<DcCatchDataLwWh> pageCheckList(Page<DcCatchDataLwWh> page) {
        return baseMapper.pageCheckList(page);
    }

}
